package com.platform.wechat.controller;

import com.platform.wechat.common.JsonBean;
import com.platform.wechat.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Queue;

/**
 * @author YP
 * @company ~~
 * @create 2021-07-28 12:43
 */

@RestController
@RequestMapping("area")
public class AreaController {

    @Autowired
    private AreaService areaService;

    /** 
    * @Description:根据主城id查询区域信息sdf
    * @Param: []
    * @return: com.platform.wechat.common.JsonBean
    * @Author: YP
    * @Date: 2021/7/28
    * @Time: 15:19
    */
    @RequestMapping("getArea")
    public JsonBean getArea(Integer parentId){
        JsonBean jsonBean = areaService.selectBeiJingArea(parentId);
        return jsonBean;
    }
}
